<div class="row">
  <div class="span12">
    <div id="myCarousel" class="carousel slide">
      <!-- Carousel items -->
      <div class="carousel-inner">
        <?php
        $rotatingImages = $this->requestAction(array('controller'=>'albums', 'action'=>'getRotatingPhotos'));
        if(!empty($rotatingImages)) {
          $count=0;
          foreach($rotatingImages as $image){
            $class = $count==0 ? "active item" : "item";
            echo '<div class="'.$class.'">'.$this->Html->image($image['image_path'], array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago')).'</div>';
            $count++;
          }
        } ?>
       <?php  /*
        <div class="active item"> <?php echo $this->Html->image('food/food1.jpg', array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago'))?></div>
        <div class="item"> <?php echo $this->Html->image('food/food2.jpg', array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago'))?></div>
        <div class="item"> <?php echo $this->Html->image('food/food3.jpg', array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago'))?></div>
        <div class="item"> <?php echo $this->Html->image('food/food4.jpg', array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago'))?></div>
        <div class="item"> <?php echo $this->Html->image('food/food5.jpg', array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago'))?></div>
        
        <div class="active item"> <?php echo $this->Html->image('homepagephotos/50f0fc50-2b54-4d3b-9f9e-17b8b5cea85f__DSC0194_copy_1358616477_0.jpeg', array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago'))?></div>
        <div class="item"> <?php echo $this->Html->image('homepagephotos/50f0fc50-2b54-4d3b-9f9e-17b8b5cea85f__DSC0209_copy_1358616406_0.jpeg', array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago'))?></div>
        <div class="item"> <?php echo $this->Html->image('homepagephotos/50f0fc50-2b54-4d3b-9f9e-17b8b5cea85f__DSC0213_copy_1358616301_0.jpeg', array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago'))?></div>
        <div class="item"> <?php echo $this->Html->image('homepagephotos/50f0fc50-2b54-4d3b-9f9e-17b8b5cea85f__DSC0215_copy_1358616218_0.jpeg', array('alt' => 'Allied Caterers of Trinidad and Tobago','title'=>'Allied Caterers of Trinidad and Tobago'))?></div>
        *  * */ ?>
        
      </div>
      <!-- Carousel nav -->
      <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
      <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
    </div>
  </div>
</div>